<?php

include("classes/Utilisateur.class.php");
include("classes/Etudiant.class.php");
include("classes/Professeur.class.php");
include("classes/RequeteSQL.class.php");
include("classes/bdd.php");

if(isset($_POST['login']) && isset($_POST['pass']))
{

	$login = $_POST['login'];
	$mdp = $_POST['pass'];

	$utilisateur = new Etudiant();

	$mess = $utilisateur->identifierInternaute($login,$mdp);
	
	echo $mess;
		
}


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">


<title></title>
<LINK rel=STYLESHEET href="css/accueil.css" type="text/css">

</head>
<body>

<form method='post' action='identification.php'>


<table border='0' align='center'>
	<tr>

		<td>
			Login : 
		</td>
		<td>
			<input type='text' name='login' />
		</td>
		
		
	</tr>
	<tr>
	
		<td>
			Mot de passe :
		</td>
		<td>
			<input type='text' name='pass' />
		</td>
	
	</tr>
	<tr>
	
		<td>
			<input type='submit' value='envoyer' />
		</td>
	
	</tr>
</table>

</form>

<a href="index.php">Retour accueil</a>

</body>
</html>